<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>笔记首页</title>
</head>

<body>
    <div id="header">
        <h2>笔记垃圾桶</h2>
        <div id="login"><a href="/user"><img src="/upload.png"></a></div>
    </div>

    <div id="home">
        <div id="title">
            <ul>
                <li>笔记目录</li>
                <li>修改时间</li>
                <li>创建时间</li>

            </ul>
        </div>

        <div id="content">
            <ul>
                {% for file in list%}
                <li>
                    <a href="/note?file={{ file.fileName }}" class="item">
                        <div>{{ file.fileName }}</div>
                    </a>
                    <div class="item">{{ file.mtime }}&nbsp;{{ file.week }}</div>
                    <div class="item">{{ file.atime }}</div>

                </li>
                {% endfor %}
            </ul>
        </div>

    </div>

    <style>
        body {
            background-color: rgba(234, 205, 118, .8)
        }

        #header {
            display: flex;
            flex: 1;

        }

        #login {
            margin-top: 24px;
            margin-left: 18px;
        }

        h2 {
            color: darkorange;
        }

        li {
            list-style-type: none;
            cursor: default;
        }

        #title ul {
            display: flex;
            justify-content: space-between;

        }

        #title li {
            width: 200px;
            height: 25px;
            text-align: center;
            line-height: 25px;
            /* background-color: coral; */
        }

        #content li {
            display: flex;
            justify-content: space-between;
            background-color: rgba(219, 176, 136, .7);
            margin-bottom: 12px;
            padding: 5px;
            border-radius: 8px;

        }

        #content li:hover {
            background-color: rgba(219, 176, 136, 1);
        }

        #content li .item {
            width: 200px;
            /* height: 50px; */
            text-align: center;
            line-height: 50px;
            border-radius: 60%;
        }

        #content li a {
            text-decoration: none;
        }

        #content li a:hover {
            font-size: 18px;
        }

        #content li .item:nth-child(1) {
            background-color: rgba(173, 221, 230, .6);
        }

        #content li .item:nth-child(2) {
            background-color: rgba(80, 255, 89, .5);
        }

        #content li .item:nth-child(3) {
            background-color: rgba(238, 255, 80, .5);
        }
    </style>
    <script src="/js/jquery-3.6.0.min.js"></script>
    <script>
        if (window.screen.availWidth < 650) {$('#content ul').css('padding-left', '0px')}
    </script>
</body>

</html>